import { space } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

const spaceRouter = {
  path: "/space",
  name: "Space",
  component: Layout,
  redirect: "/space/profile",
  meta: {
    icon: "ep:star",
    title: "个人空间",
    rank: space
  },
  children: [
    {
      path: "/space/profile",
      name: "Space-Profile",
      component: () => import("@/views/space/profile/index.vue"),
      meta: {
        icon: "ep:user",
        title: "我的形象",
        keepAlive: true
      }
    },
    {
      path: "/space/security",
      name: "Space-Security",
      component: () => import("@/views/space/security/index.vue"),
      meta: {
        icon: "ep:lock",
        title: "信息安全",
        keepAlive: true
      }
    }
  ]
};

export default spaceRouter as RouteConfigsTable;
